From: Georges Basile Stavracas Neto Date: Wed, 5 Feb 2020 18:26:44 +0000 (-0300) Subject: loginDialog: Center align Caps Lock and authentication messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~76 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cc5adcbeef1d0a1df900d1e12c8121a5aba5b6af;p=gnome-shell.git loginDialog: Center align Caps Lock and authentication messages https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss index 5613d9688..22ac8d181 100644 --- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss +++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss @@ -85,6 +85,7 @@ .login-dialog-logo-bin { padding: 24px 0px; } .login-dialog-banner { color: darken($osd_fg_color,10%); } .login-dialog-button-box { width: 23em; spacing: 5px; } +.login-dialog-message { text-align: center; } .login-dialog-message-warning { color: $warning_color; } .login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; } .login-dialog-user-selection-box { padding: 100px 0px; } diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 2fb5057b8..6dc914a03 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -99,15 +99,19 @@ var AuthPrompt = GObject.registerClass({ this._initEntryRow(); - this._capsLockWarningLabel = new ShellEntry.CapsLockWarning(); + this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({ + x_expand: true, + x_align: Clutter.ActorAlign.CENTER, + }); this.add_child(this._capsLockWarningLabel); this._message = new St.Label({ opacity: 0, styleClass: 'login-dialog-message', - x_expand: false, y_expand: true, + x_expand: true, y_align: Clutter.ActorAlign.START, + x_align: Clutter.ActorAlign.CENTER, }); this._message.clutter_text.line_wrap = true; this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;